﻿@using (Ajax.BeginAjaxForm("SendMail", "Account", new jQueryAjaxOptions()
  {
      UpdateTargetID = "EmailWriterContainer"
  }, new RouteValueDictionary(new { Area = "" })))
{
    @Html.AntiForgeryToken()
    <table style="background-color: #ffffff; color: #000000;" cellpadding="5" cellspacing="0">
        <tr>
            <td align="right">
                @Html.Global("RES_SUBJECT"):
                @Html.Hidden("txtReceiver", ViewData["Receiver"])
            </td>
            <td>
                @Ajax.Dna().TextBox("txtEmailText").Width(300).GetHtml()
            </td>
        </tr>
        <tr>
            <td colspan="2">
            @Ajax.Dna().TextArea("txtEmailBody").Width(475).Height(200).GetHtml()
                @*@Ajax.Dna().RichTextBox("txtEmailBody").AllowHTMLEditing(false).ToolPanes(panes => panes.Clear()).GetHtml()*@
            </td>
        </tr>
    </table>
}
<script type="text/javascript">
    $(function () {
        setTimeout(function () {
            //$("#txtEmailBody").richtextbox("active");
            $("#txtEmailText").focus();
        }
        , 500);
    });
</script>
@Html.StartupScripts()
